<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>检验报告详情</title>
    <%- include('../../../_global/baseLibs') %>
    <meta name="viewport" content="width=device-width,user-scalable=no, initial-scale=1">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
</head>
<body>
<section class="page-wrap page-health">
    <!-- header start -->
    <header class="header-box grey fixed">
        <div class="header-content">
            <div class="left-tool">
                <a class="back" href="javascript:void(0);"><i class="iconfont icon-back"></i></a>
            </div>
            <div class="title">检查报告详情</div>
        </div>
    </header>
    <!-- header end -->

    <!--content start-->
    <aside class="report-basic-info">
        <div class="base-info">
            <h4 class="name hosName"></h4>
            <!--<p class= "time reportDate">2017-02-28</p>-->
        </div>
        <p class="p-text"><label class="label-text">检查项目：</label><label class="label1-text checkName"></label></p>
        <p class="p-text">
            <label class="label-text">检查部位：</label><label
                    class="label1-text checkPoint"></label>
        </p>
        <p class="p-text">
            <label class="label-text">报告医生：</label><label
                    class="label1-text docName"></label>
        </p>
        <p class="p-text">
            <label class="label-text">检查日期：</label><label
                    class="label1-text checkDate"></label>
        </p>
    </aside>

    <aside class="report-basic-info">
        <h4 class="info-title">检查所见：</h4>
        <p class="p-text examinationFinding"></p>
    </aside>

    <aside class="report-basic-info">
        <h4 class="info-title">临床诊断：</h4>
        <p class="p-text clinicalDiagnosis"></p>
    </aside>

    <aside class="report-basic-info">
        <h4 class="info-title">检查提示：</h4>
        <p class="p-text checkPrompt"></p>
    </aside>
    <!--content end-->

</section>
<script type="text/javascript">



    var page_jcbgxq = (function($, page_jcbgxq) {
        function queryJcbgxq() {
            var params = {
                id : $.QuickUrlUtils.getRequest("id"),
                serialNum : $.QuickUrlUtils.getRequest("serialNum"),
                applyTime : $.QuickUrlUtils.getRequest("applyTime"),
                medicalOrgId : $.QuickUrlUtils.getRequest("medicalOrgId")
            };
            $.QuickRemote.AjaxJson({
                funcName: "/api/gzd/jyjc/queryJcbgxq"
                ,params: params
                ,callback: page_jcbgxq.queryReportResult

            });
        }



        /**  就诊页面跳转，查询实时接口，将结果转为健康档案标准结果  */
        function queryReportResult(result) {
            if(result.length>0){
                result = result[0];
            }
            var data = {};
            data.docName = result.ysxm;
            data.checkDate = result.jcsj;
            data.clinicalDiagnosis = result.lczd;
            data.checkPrompt = result.jcts;
            data.examinationFinding = result.yxbx;
            data.checkName = result.jcmc;
            data.checkPoint = result.jcbw;
            $(".hosName").text( $.QuickUrlUtils.getRequest("yymc"));
            page_jcbgxq.setInfo(data);
        }

        function setInfo(info) {
            var baseContainer = $("aside.report-basic-info");
            for ( var key in info) {
                var value = info[key];
                var oj = baseContainer.find("." + key);
                oj.html(value);
            }
        }
        var cfg_def = {
            queryJcbgxq: queryJcbgxq,
            queryReportResult: queryReportResult,
            setInfo: setInfo,
        }

        page_jcbgxq.init = function(cfg){
            $.extend(page_jcbgxq, cfg_def, cfg);
            page_jcbgxq.queryJcbgxq();

        }

        return page_jcbgxq;
    })(jQuery, {});
    
</script>

</body>
</html>